package wells.concurrency.escape;

public class ThisEscape {

	public static void main(String[] args) {
		Runnable run = () -> {
		};

		Thread thread = new Thread(run);

		thread.start();
	}

	public ThisEscape(EventSource source) {
		source.registerListener(new EventListener() {

			public void onEvent(Event e) {
				doSomething(e);
			}
		});
	}

	protected void doSomething(Event e) {
		e.hello(this);
	}

}
